<!DOCTYPE html>
<html>
<head>
    <title>预约管理</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.2/style/weui.min.css ">
    <link rel="stylesheet" href="https://cdn.bootcss.com/jquery-weui/1.2.0/css/jquery-weui.min.css ">
    <link rel="stylesheet" href="https://jqweui.cn/dist/demos/css/demos.css ">
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_587767_rj4fkdnklqttvs4i.css ">
    <script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js "></script>
    <link rel="stylesheet" type="text/css" href="__TMPL__/public/assets/css/mui.min.css">
    <script src="__TMPL__/public/assets/js/mui.min.js"></script>
</head>
<body style="background: #eeefef">
<header class="mui-bar mui-bar-nav" style="padding: 0px">
    <!--头部开始-->
    <div class="weui-flex" style="border-bottom: 1px solid gainsboro;background: #FCFCFC;height: 45px;">
        <div class="weui-flex__item" style="margin-top: 15px;">
            <div class="placeholder" style="margin-left: 10px;margin-top: -5px;">
                <a href="{:url('/portal/teacher/liuyan_detail')}"><span  style="color: #04BE02;" onclick="history.back()" class="icon  icon-back"></span>
                </a></div>
        </div>

        <div class="weui-flex__item">
            <div class="placeholder" style="text-align: center;margin-top: 10px; color: #404040;">留言内容</div>
        </div>

        <div class="weui-flex__item">
            <div class="placeholder"></div>
        </div>
        <!--<a   href="{:url('/portal/teacher/subscribe_accept','teacher_id=8')}"   style="margin-top: 10px;margin-right: 12px;color: #04BE02;font-size: 12px" >查看已接受</a>-->
    </div>
    <!--头部结束-->
  <textarea  style="margin-top: 8px">{$res}</textarea>
<script src="__TMPL__/public/assets/js/jquery-2.1.4.js"></script>
<script src="__TMPL__/public/assets/js/fastclick.js"></script>
<script>
    $(function() {
        FastClick.attach(document.body);
    });
</script>
<script src="__TMPL__/public/assets/js/jquery-weui.js"></script>
<script src="__TMPL__/public/assets/js/city-picker.js"></script>
<script>

    $(".delete6").click(function () {
        window.location.href = "{:url('Teacher/')}";
    });
    function reject(id){
        $.ajax({
            type:"post",
            url:"{:url('/portal/Teacher/subscribe_del')}",
            dataType:'JSON',
            data:{rejecd_id:id},
            error: function (data){
                mui.toast('拒绝失败');
            },
            success: function (data) {
                mui.toast('成功拒绝');
                document.getElementById(id).remove();
            }
        });
    }
    function accept(id){
        $.ajax({
            type:"post",
            url:"{:url('/portal/Teacher/subscribe_del')}",
            dataType:'JSON',
            data:{accept_id:id},
            error: function (data){
                mui.toast('接受失败');
            },
            success: function (data) {
                mui.toast('成功接受');
                document.getElementById(id).remove();
            }
        });
    }
    function del(id){
        $.ajax({
            type:"post",
            url:"{:url('/portal/Teacher/subscribe_del')}",
            dataType:'JSON',
            data:{del_id:id},
            error: function (data){
                mui.toast('删除失败');
            },
            success: function (data) {
                mui.toast('成功删除');
                document.getElementById(id).remove();
            }
        });
    }
</script>

</body>
</html>